<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改【请填写功能名称】')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-upkeep-edit" th:object="${catUpkeep}">
        <input name="cId" th:field="*{cId}" type="hidden">
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label is-required">车牌号：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="cCarld" th:field="*{cCarld}" class="form-control" type="text" required>-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label">登记时间：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <div class="input-group date">-->
<!--                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
<!--                    <input name="cTime" th:value="${#dates.format(catUpkeep.cTime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
<!--        </div>-->
<!--        <div class="form-group">-->
<!--            <label class="col-sm-3 control-label is-required">备注：</label>-->
<!--            <div class="col-sm-8">-->
<!--                <input name="cRemark" th:field="*{cRemark}" class="form-control" type="text" required>-->
<!--            </div>-->
<!--        </div>-->
                    <div class="form-group">
                        <label class="col-sm-3 control-label is-required">金额：</label>
                        <div class="col-sm-8">
                            <input name="cMoney" th:field="*{cMoney}" class="form-control" type="text" required>
                        </div>
                    </div>
        <!--            <div class="form-group">    -->
        <!--                <label class="col-sm-3 control-label is-required">上传文件：</label>-->
        <!--                <div class="col-sm-8">-->
        <!--                    <input name="cData" th:field="*{cData}" class="form-control" type="file" required>-->
        <!--                </div>-->
        <!--            </div>-->
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script type="text/javascript">
    var prefix = ctx + "ruoyi/carupkeep";
    $("#form-upkeep-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/edit", $('#form-upkeep-edit').serialize());
        }
    }

    $("input[name='cTime']").datetimepicker({
        format: "yyyy-mm-dd",
        minView: "month",
        autoclose: true
    });
</script>
</body>
</html>